package com.example.lotterysystem.common.errorcode;
/**
 * 定义全局错误码
 */
public interface GlobalErrorCodeConstants {
    ErrorCode SUCCESS = new ErrorCode(200,"成功");

    //指定服务端错误码
    ErrorCode INTERNAL_SERVER_ERROR = new ErrorCode(500,"系统异常");
    ErrorCode NOT_IMPLEMENTED = new ErrorCode(501,"功能未实现/未开启");
    ErrorCode ERROR_CONFIGURATION = new ErrorCode(502,"错误的配置项");

    //其他错误码
    ErrorCode UNKNOWN = new ErrorCode(729,"未知错误");
}
